export default {
  state: {
    lang: "CHS", //语言类型   CHS / EN / JAP
    searchCate: "", // 导航栏搜索分类
    searchInput: "", // 导航栏搜索input值
    ifSearchFocus: false, // 导航栏   true：获取焦点 false：失去焦点
    equipment: "pc", //监测当前屏幕设备   pc / mobile
    urlLink: "http://www.co-effort.com", //视频/图片资源
    clientW: "", //  屏幕大小

    NewsCate: [], //新闻分类
    NewsCateCurrentCHS: "", // 新闻选中分类  中文
    NewsCateCurrentEN: "", // 新闻选中分类 英文
    NewsCateCurrentJAP: "", // 新闻选中分类  日语

    field_cate: [], // 专业领域分类
    FieldCurrentCHS: "", //专业领域  中文 选中分类
    FieldCurrentEN: "",
    FieldCurrentJAP: "",

    activityCateCHS: [], // 活动分类  中文
    activityCurrentCHS: "",

    activityCateEN: [], // 活动分类  英文
    activityCurrentEN: "",

    activityCateJAP: [], // 活动分类  日语
    activityCurrentJAP: "",

    positionCateCHS: [], // 职务中文分类
    positionCateEN: [], // 职务英文分类
    positionCateJAP: [], // 职务日文分类

    placeCateCHS: [], // 办公机构中文分类
    placeCateEN: [], // 办公机构英文分类
    placeCateJAP: [], // 办公机构日文分类

    businessCateCHS: [], // 业务领域中文分类
    businessCateEN: [], // 业务领域英文分类
    businessCateJAP: [] // 业务领域日文分类
  },
  mutations: {
    //改变语言
    changeLang(state, content) {
      state.lang = content;
    },
    // 改变职务
    changePositionCateCHS(state, content) {
      state.positionCateCHS = content;
    },
    // 改变职务
    changePositionCateEN(state, content) {
      state.positionCateEN = content;
    },
    // 改变职务
    changePositionCateJAP(state, content) {
      state.positionCateJAP = content;
    },

    // 改变办公机构
    changePlaceCateCHS(state, content) {
      state.placeCateCHS = content;
    },
    // 改变办公机构
    changePlaceCateEN(state, content) {
      state.placeCateEN = content;
    },
    // 改变办公机构
    changePlaceCateJAP(state, content) {
      state.placeCateJAP = content;
    },

    // 改变业务领域
    changeBusinessCateCHS(state, content) {
      state.businessCateCHS = content;
    },
    // 改变业务领域
    changeBusinessCateEN(state, content) {
      state.businessCateEN = content;
    },
    // 改变业务领域
    changeBusinessCateJAP(state, content) {
      state.businessCateJAP = content;
    },

    // 改变导航栏搜索分类
    changeSearchCate(state, content) {
      state.searchCate = content;
    },
    // 导航栏input 获取焦点
    changeifSearchFocus(state, content) {
      state.ifSearchFocus = content;
    },

    changeSearchInput(state, content) {
      state.searchInput = content;
    },
    // 改变设备   PC  / middle
    changeEquipment(state, content) {
      state.equipment = content;
    },
    // 监听屏幕大小改变
    changeClientW(state, content) {
      state.clientW = content;
    },
    // 新闻页面 新闻分类
    changeNewsCate(state, content) {
      state.NewsCate = content;
    },
    // 新闻页面 选中当前项
    changeNewsCateCurrentCHS(state, content) {
      state.NewsCateCurrentCHS = content;
    },
    // 新闻页面 选中当前项
    changeNewsCateCurrentEN(state, content) {
      state.NewsCateCurrentEN = content;
    },
    // 新闻页面 选中当前项
    changeNewsCateCurrentJAP(state, content) {
      state.NewsCateCurrentJAP = content;
    },

    // 专业领域分类
    changeFieldCate(state, content) {
      state.field_cate = content;
    },
    // 专业领域 中文 选中当前项
    changeFieldCurrentCHS(state, content) {
      state.FieldCurrentCHS = content;
    },
    // 专业领域 英文 选中当前项
    changeFieldCurrentEN(state, content) {
      state.FieldCurrentEN = content;
    },
    // 专业领域 日语 选中当前项
    changeFieldCurrentJAP(state, content) {
      state.FieldCurrentJAP = content;
    },

    //活动分类  中文
    changeActivityCateCHS(state, content) {
      state.activityCateCHS = content;
    },
    //选中活动分类  中文
    changeActivityCurrentCHS(state, content) {
      state.activityCurrentCHS = content;
    },

    //活动分类  英文
    changeActivityCateEN(state, content) {
      state.activityCateEN = content;
    },
    //选中活动分类   英文
    changeActivityCurrentEN(state, content) {
      state.activityCurrentEN = content;
    },

    //活动分类  日语
    changeActivityCateJAP(state, content) {
      state.activityCateJAP = content;
    },
    //选中活动分类    日语
    changeActivityCurrentJAP(state, content) {
      state.activityCurrentJAP = content;
    }
  }
};
